<?php $this->load->view('layout/header'); ?>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<div>
</div>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form action="<?php echo b_url('message/feedback')?>" method='post' >
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                反馈类型：
                            </td>
                            <td>
                                <select name="typeid" id="drpTypeID">
                                    <option value="-1">不限</option>
                                    <option value="1">信息反馈</option>
                                    <option value="2">产品订购</option>
                                    <option value="3">在线招聘</option>
                                </select>
                            </td>
                            <td style="width: 15%" align="right">
                                标题：
                            </td>
                            <td>
                                <input name="title" type="text" id="txtTitle" />
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                内容：
                            </td>
                            <td>
                                <input name="feedbackcontent" type="text" id="txtFeedbackContent" />
                            </td>
                            <td style="width: 15%" align="right">
                                IP地址：
                            </td>
                            <td>
                                <input name="ipaddress" type="text" id="txtIpAddress" />
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                反馈时间：
                            </td>
                            <td colspan="3">
                                <input name="addtime1" type="text" id="txtAddTime1" onfocus="WdatePicker({maxDate:&#39;#F{$dp.$D(\&#39;txtAddTime2\&#39;)}&#39;})" />
                                至
                                <input name="addtime2" type="text" id="txtAddTime2" onfocus="WdatePicker({minDate:&#39;#F{$dp.$D(\&#39;txtAddTime1\&#39;)}&#39;})" />
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                是否处理：
                            </td>
                            <td colspan="3">
                                <span id="radIsDeal">
                                    <input id="radIsDeal_0" type="radio" name="isdeal" value="-1" checked="checked" /><label for="radIsDeal_0">不限</label>
                                    <input id="radIsDeal_1" type="radio" name="isdeal" value="0" /><label for="radIsDeal_1">未处理</label>
                                    <input id="radIsDeal_2" type="radio" name="isdeal" value="1" /><label for="radIsDeal_2">已处理</label>
                                </span>
                            </td>
                        </tr>
                        <tr class="table_query_btn">
                            <td align="right" style="width: 15%">
                            </td>
                            <td>
                                <input type="submit" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;Feedback.aspx&quot;, false, false))" id="btnQuery" />
                                <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                            </td>
                            <td align="right" style="width: 15%">
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                    </form>
                </div>
            </div>
        </div>
        <!--查询表单结束-->
        <!--导航开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_nav">
            <tr>
                <td>
                    反馈管理&gt;管理列表
                </td>
            </tr>
        </table>
        <!--导航结束-->
        <!--操作选项开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a onclick="javascript:return checkDel(this);" name="feedbackid" src="<?php echo b_url('message/delete_info/feedback/feedbackid/feedback/')?>" id="lbtnDel" href="javascript:;">删除信息反馈</a>
                    <a href="javascript:SearchDialog()">查询信息反馈</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'FeedbackID')" />
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=FeedbackID&AscDesc=desc&drpTypeID=-1&txtTitle=&txtFeedbackContent=&txtIpAddress=&txtAddTime1=&txtAddTime2=&radIsDeal=-1&page=1')" title="点击排序">
                    自动编号<img src="../Themes/Images/up.gif"/>
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=Title&AscDesc=desc&drpTypeID=-1&txtTitle=&txtFeedbackContent=&txtIpAddress=&txtAddTime1=&txtAddTime2=&radIsDeal=-1&page=1')" title="点击排序">
                    标题
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=TypeID&AscDesc=desc&drpTypeID=-1&txtTitle=&txtFeedbackContent=&txtIpAddress=&txtAddTime1=&txtAddTime2=&radIsDeal=-1&page=1')" title="点击排序">
                    反馈类型
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=IpAddress&AscDesc=desc&drpTypeID=-1&txtTitle=&txtFeedbackContent=&txtIpAddress=&txtAddTime1=&txtAddTime2=&radIsDeal=-1&page=1')" title="点击排序">
                    IP地址
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&drpTypeID=-1&txtTitle=&txtFeedbackContent=&txtIpAddress=&txtAddTime1=&txtAddTime2=&radIsDeal=-1&page=1')" title="点击排序">
                    反馈时间
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=IsDeal&AscDesc=desc&drpTypeID=-1&txtTitle=&txtFeedbackContent=&txtIpAddress=&txtAddTime1=&txtAddTime2=&radIsDeal=-1&page=1')" title="点击排序">
                    是否处理
                </td>
            </tr>
            <?php foreach($list as $k=>$v): ?>
                    <tr class="table_list_row_normal">
                        <td style="width: 2%">
                            <input name="feedbackid" type="checkbox" id="feedbackid" value="<?php echo $v['feedbackid']?>" onclick="javascript:TrColor2('feedbackid',1)" />
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('LinkID',1)">
                            <?php echo $v['feedbackid']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('LinkID',1)">
                            <a href="<?php echo b_url('message/add_feedback/').$v['feedbackid'];?>" title="百度">
                                <?php echo $v['title']?>
                            </a>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('LinkID',1)">
                            <?php
                            if($v['typeid'] == 1){
                                echo '信息反馈';
                            }elseif($v['typeid'] == 2){
                                echo '产品订购';
                            }elseif($v['typeid'] == 3){
                                echo '在线招聘';
                            }
                            ?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('LinkID',1)">
                            <?php echo $v['ipaddress']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('LinkID',1)">
                            <?php echo $v['addtime']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('LinkID',1)">
                            <?php 
                                if($v['isdeal'] == 0){
                                    echo '<font color="red">未处理</font>';
                                }elseif($v['isdeal'] == 1){
                                    echo '已处理';
                                }
                            ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
        </table>
        <!--列表结束-->
        <!--分页开始-->
        <?php $pagination->show();?>
        <!--分页结束-->
    </div>
    </form>
<?php $this->load->view('layout/footer'); ?>

